package cn.ld.modules.demo.test.service;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

import cn.ld.modules.demo.test.entity.LdOrderCustomer;
import cn.ld.modules.demo.test.entity.LdOrderMain;
import cn.ld.modules.demo.test.entity.LdOrderTicket;

import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @Description: 订单
 * @Author: ld-boot
 * @Date:  2019-02-15
 * @Version: V1.0
 */
public interface ILdOrderMainService extends IService<LdOrderMain> {

	/**
	 * 添加一对多
	 * @param ldOrderMain 订单实体类
     * @param ldOrderCustomerList 订单客户集合
     * @param ldOrderTicketList 订单机票集合
	 */
	public void saveMain(LdOrderMain ldOrderMain,List<LdOrderCustomer> ldOrderCustomerList,List<LdOrderTicket> ldOrderTicketList) ;
	
	/**
	 * 修改一对多
     * @param ldOrderMain 订单实体类
     * @param ldOrderCustomerList 订单客户集合
     * @param ldOrderTicketList 订单机票集合
	 */
	public void updateMain(LdOrderMain ldOrderMain,List<LdOrderCustomer> ldOrderCustomerList,List<LdOrderTicket> ldOrderTicketList);
	
	/**
	 * 删除一对多
	 * @param id 订单id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 * @param idList 订单id集合
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

    /**
     * 修改一对多
     * @param ldOrderMain 订单实体类
     * @param ldOrderCustomerList 订单客户集合
     * @param ldOrderTicketList 订单机票集合
     */
	public void updateCopyMain(LdOrderMain ldOrderMain, List<LdOrderCustomer> ldOrderCustomerList, List<LdOrderTicket> ldOrderTicketList);
}
